package server.main.pojo;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@TableName(value = "doctor")
public class Doctor {


  @TableId(type = IdType.AUTO)
  private Integer id;

  @TableField(value = "gmt_create",fill = FieldFill.INSERT)
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date gmtCreate;

  @TableField(value = "gmt_modified", fill = FieldFill.UPDATE)
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date gmtModified;


  @TableField(value = "jobnum")
  private String jobnum;

  @TableField(value = "name")
  private String name;

  @TableField(value = "gender")
  private String gender;

  @TableField(value = "idcard")
  private String idcard;

  @TableField(value = "birthday")
  private Date birthday;

  @TableField(value = "nationality")
  private String nationality;

  @TableField(value = "education")
  private String education;

  @TableField(value = "phone")
  private String phone;

  @TableField(value = "email")
  private String email;










}
